/*
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


/* General Styles */
body {
    font-family: 'Roboto', sans-serif; 
    margin: 0;
    background-color: #fff; 
    color: #202124;
}

.container {
    display: flex;
    min-height: 100vh;
}

.key-content {
  flex: 1;
  padding: 20px;
}

/* Content Styles */
.content {
    flex: 1;
    padding: 20px;
    max-width: 800px;
}

.risk-container {
  flex: 1;
  padding: 20px;
}

.tabs {
    margin-bottom: 20px;
}

.tabs button {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.tabs button.active {
    border-bottom: 2px solid #007bff; /* Highlight active tab */
    font-weight: bold;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f0f0f0; /* Light background for headers */
    font-weight: bold;
}

a { /* Style the links */
    color: black; 
    text-decoration: none;
   /* margin-left: 20px; */
}

a:hover {
    text-decoration: none;
}

.navbar {
    background-color: #007bff; /* Dark background */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between; /* Align title and links */
    align-items: center;
    border-bottom: 1px solid #eee;
  }

.navbar .nav-container {
    align-items: center;
    display: flex;
  }
  
  .navbar-title {
    font-size: 20px;
    font-weight: bold;
    margin-left:10px;
  }
  
  .navbar-links a { /* Style the links */
    color: white;
    text-decoration: none;
    margin-left: 20px;
  }
  
  .navbar-links a:hover {
    text-decoration: none;
  }

  /* Form Input Styles */
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px; /* Increase padding for better spacing */
  margin: 8px 0;
  border: 1px solid #dadce0;
  border-radius: 4px; /* Add slightly rounded corners */
  box-sizing: border-box;
  font-family: 'Roboto';
}

/* Dropdown Styles (select) */
select {
  appearance: none; /* Remove default styling */
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px; /* Adjust padding to accommodate the arrow */
}

/* Button Styles */
button[type="submit"],
button[type="button"] {
  background-color: #1a73e8; /* Primary blue color */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease; /* Smooth transition on hover */
}

button[type="submit"]:hover,
button[type="button"]:hover {
  background-color: #0056b3; /* Darker blue on hover */
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

/* Focus Styles (for accessibility) */
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none; /* Remove default outline */
  border-color: #1a73e8; /* Blue border on focus */
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

#stack-rank-div table td { /* Target all td elements within the table */
  max-width: 100px; /* Default width for most columns */   
}

#stack-rank-div table td:first-child { /* Target the first column (Risk) */
  max-width: 400px; /* Set a specific width for the Risk column */
}

.risk-theme-tag {
  display: inline-block;
  padding: 3px 6px; /* Adjust padding as needed */
  margin-right: 5px; /* Add some spacing between tags */
  background-color: #e7e7e7; /* Light gray background */
  color: #333; /* Dark text color */
  border-radius: 4px; /* Slightly rounded corners */
  font-size: 12px; /* Adjust font size as needed */
}

.risk-grid {
  border-collapse: collapse; /* Remove cell spacing */
}

.risk-cell {
  padding: 10px; /* Adjust padding as needed */
  border: 1px solid #ccc; /* Add borders */
  text-align: center;
  cursor: pointer; /* Indicate that cells are clickable */
}

.risk-cell.low {
  background-color:#66BB6A; /* Or your desired color for low risk */
}

.risk-cell.medium {
  background-color: #ffb74d; /* Or your desired color for medium risk */
}

.risk-cell.high {
  background-color:#ed592c; /* Or your desired color for high risk */
}

.risk-cell.clicked {
  background-color: #93cbfb; /* Color for clicked cells */
}

/* Form Styles */
.risk-form {
  display: flex;
  flex-direction: column; /* Arrange form groups vertically */
  gap: 15px; /* Add spacing between form groups */
  max-width: 800px;
}

.form-row {
  display: flex;
  justify-content: space-between; /* Distribute columns evenly */
}

.form-column {
  flex: 1; /* Each column takes equal width */
  margin-right: 10px; /* Add some spacing between columns */
}

.form-column:last-child { /* Remove right margin from the last column */
  margin-right: 0;
}

.form-group label { /* Make labels bold */
  /* font-weight: bold; */
}

.form-group.full-width {
  width: 100%; /* Make the Risk Name input full width */
}

.form-group.full-width input[type="text"] {
  width: 100%;
}

.form-buttons { 
  display: flex;
  justify-content: center; 
  margin-left: 20px;
  transition: width 0.3s ease-in-out;
}

.sidebar {
    width: 150px; /* Adjust as needed */
    /* background-color:lightblue ; */
    padding: 20px 5px;
    /* align-content: center; */
    /* display: flex;
    min-height: 100vh; */
}

.sidebar.closed {
  width: 20px; 
  ul { display: none; }
}


.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
    padding: 10px 15px; /* Increase padding for better spacing */
    cursor: pointer;
    border-bottom: 1px solid #eee; /* Add a subtle divider between items */
}

.sidebar li:hover {
    background-color: lightblue; /* Slightly darker background on hover */
}

.sidebar li a.active { 
  font-weight: bold; 
}

.sidebar li a:hover {
    text-decoration:none; /* Add underline on hover */
}

.sidebar .toggle-button-container {
  position: absolute;
  justify-content: center !important; 
}

.navbar .toggle-button { /* Style the "X" button */
    /* position: absolute;    */
    top: 10px;
    right: 10px;
    padding: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  */
}

.sidebar .toggle-button:hover {
  background-color: lightblue; /* Light gray background on hover */
}

.sidebar .toggle-button:focus { 
  outline: none;      
  background-color: #d4e6f1; 
} 

.application-dropdown .multiselect-container {
  color: black;
  background-color:#8bc3ff;
  border-radius: 5px;
  width: 200px;
}

.application-dropdown .multiselect-container .searchWrapper {
  text-align: center;
  padding: 5px;
}

.application-dropdown .multiselect-container .ul {
  text-align: center;
}

.application-dropdown .multiselect-container .chip {
font-size: 15px;
font-weight: bold;
color: black;
}

.application-dropdown .closeIcon {
  display: none;
  }
